package seckill

import (
	"mall/common/result"
	"net/http"

	"mall/app/seckill/cmd/api/internal/logic/seckill"
	"mall/app/seckill/cmd/api/internal/svc"
)

func GetCurrentSeckillSkusHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
	return func(w http.ResponseWriter, r *http.Request) {
		l := seckill.NewGetCurrentSeckillSkusLogic(r.Context(), svcCtx)
		resp, err := l.GetCurrentSeckillSkus()
		result.SendHttp(r, w, resp, err)
	}
}
